package icu.d4peng.basic.http.feign;

import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

/**
 * @author d4peng d4peng@qq.com
 * @date 2023-11-26 15:36:16
 */

public class HttpClient5DisabledConditions extends AnyNestedCondition {

	public HttpClient5DisabledConditions() {
		super(ConfigurationPhase.PARSE_CONFIGURATION);
	}

	@ConditionalOnMissingClass("feign.hc5.ApacheHttp5Client")
	static class ApacheHttp5ClientClassMissing {

	}

	@ConditionalOnProperty(value = "roc.feign.httpclient.hc5.enabled", havingValue = "false", matchIfMissing = true)
	static class HttpClient5Disabled {

	}

}
